<%@ page pageEncoding="utf-8" %>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
    <meta charset="UTF-8">
    <title>update</title>
</head>
<body>
<%--此时没有写action，直接回提交给/update    enctype="multipart/form-data"表示有图片上传--%>
<sf:form method="post" modelAttribute="user" enctype="multipart/form-data">
    UserName:<sf:input path="userName"/><sf:errors path="userName"/><br/>
    Age:<sf:input path="userAge"/><sf:errors path="userAge"/><br/>
    <input type="submit" value="update"/>
</sf:form>
</body>
</html>